import fetch from 'common/src/utils/fetch';

/**
 * 查询课程成绩列表接口（ 课程成绩变更共用一个接口列表接口）
 */
export function listCourseScorePage(data) {
    return fetch({
        url: '/api/scoremanagementservice/courseScoreChange/listCourseScorePage',
        method: 'post',
        data
    });
}

/**
 * 查询课程成绩列表接口（ 课程成绩变更共用一个接口列表接口）
 */
export function listTeachingClassInfoPage(data) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/listTeachingClassInfoPage',
        method: 'post',
        data
    });
}

/**
 * 指定其他录入人接口
 */
export function setImporter(data) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/setImporter',
        method: 'post',
        data
    });
}

/**
 * 查询课程成绩构成
 */
export function componentQuery(data) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/scoreComponent/query',
        method: 'post',
        data
    });
}

/**
 * 设置课程成绩构成
 */
export function componentSet(data) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/scoreComponent',
        method: 'post',
        data
    });
}

/**
 * 保存成绩（ 暂存）
 */
export function saveScore(data) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/tmpScore',
        method: 'post',
        data
    });
}
